<?php

namespace app\api\model;
use think\Model;
use think\Config;

class Banner extends Model
{
    protected $table = 'jk_banners';

    //图片拼接域名
    public function getPicAttr($value)
    {
        return Config::get('web.pic_url')['banner'] . $value;
    }
}
